package com.zhou.piledriver.controller;

import com.zhou.piledriver.common.R;
import com.zhou.piledriver.common.ResponseResult;
import com.zhou.piledriver.service.PdDeviceService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ZhouShenBin
 * @date 2024/3/21 8:55
 * @description
 */
@RestController
@RequestMapping("/device")
public class PdDeviceController {
@Resource
    PdDeviceService pdDeviceService;
    @GetMapping("/list")
    @Operation(summary = "设备列表")
    public ResponseResult listTenant(String tenantId,String projectId) {
        return R.success(pdDeviceService.list(tenantId,projectId));
    }
}
